package com.ruoyi.yf.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医废 报模版 配置对象 yf_reports_config
 *
 * @author XiaoYi...
 * @date 2020-03-26
 * 62cec0fa-8173-4607-b40f-166f876b51ed
 */
public class YfReportsConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序列id
     */
    private Long id;

    /**
     * 医院
     */
    @Excel(name = "医院")
    private Long hospitalId;

    /**
     * 报表模版名称
     */
    @Excel(name = "报表模版名称")
    private String rTName;

    /**
     * 报表模版标题
     */
    @Excel(name = "报表模版标题")
    private String rTTitle;

    /**
     * 报表模版地址
     */
    @Excel(name = "报表模版地址")
    private String rTPath;

    /**
     * 模版josn 替换 {AF:"张三",...}
     */
    @Excel(name = "模版josn 替换 {AF:'张三'',...}")
    private String rTJson;

    /**
     * 查询sql （只限制表名为yf_开始的 select 查询语句；）
     */
    @Excel(name = "查询sql ", readConverterExp = "只=限制表名为yf_开始的,s=elect,查=询语句；")
    private String rTSql;

    /**
     * 状态（字典表sys_normal_disable 0:正常；1:停止；）
     */
    @Excel(name = "状态", readConverterExp = "字=典表sys_normal_disable,0=:正常；1:停止；")
    private String status;

    /**
     * 创建者
     */
    @Excel(name = "创建者")
    private Long createId;

    /**
     * 更新者
     */
    @Excel(name = "更新者")
    private Long updateId;

    /**
     * select 名称排序以逗号分隔:i1,d2,l4
     */
    @Excel(name = "select 名称排序以逗号分隔:i1,d2,l4")
    private String selectNameSort;

    /**
     * 列合计（字典表 sys_show_hide 0:显示 1:隐藏）
     */
    @Excel(name = "列合计", readConverterExp = "字=典表,s=ys_show_hide,0=:显示,1=:隐藏")
    private String columnSum;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() {
        return hospitalId;
    }

    public void setrTName(String rTName) {
        this.rTName = rTName;
    }

    public String getrTName() {
        return rTName;
    }

    public void setrTTitle(String rTTitle) {
        this.rTTitle = rTTitle;
    }

    public String getrTTitle() {
        return rTTitle;
    }

    public void setrTPath(String rTPath) {
        this.rTPath = rTPath;
    }

    public String getrTPath() {
        return rTPath;
    }

    public void setrTJson(String rTJson) {
        this.rTJson = rTJson;
    }

    public String getrTJson() {
        return rTJson;
    }

    public void setrTSql(String rTSql) {
        this.rTSql = rTSql;
    }

    public String getrTSql() {
        return rTSql;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setSelectNameSort(String selectNameSort) {
        this.selectNameSort = selectNameSort;
    }

    public String getSelectNameSort() {
        return selectNameSort;
    }

    public void setColumnSum(String columnSum) {
        this.columnSum = columnSum;
    }

    public String getColumnSum() {
        return columnSum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("hospitalId", getHospitalId())
                .append("rTName", getrTName())
                .append("rTTitle", getrTTitle())
                .append("rTPath", getrTPath())
                .append("rTJson", getrTJson())
                .append("rTSql", getrTSql())
                .append("status", getStatus())
                .append("createId", getCreateId())
                .append("createTime", getCreateTime())
                .append("updateId", getUpdateId())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("selectNameSort", getSelectNameSort())
                .append("columnSum", getColumnSum())
                .toString();
    }
}
